﻿using Domain.Entity;
using System.Collections.Generic;
using Business.Abstract;
using Business.Service;
using Domain.Common;
namespace PresentationMVC.Models
{

    public class StaffDataModel : AbstractModel
    {
        public StaffDataModel()
        {
        }

        public Staff Staff
        {
            get;
            set;
        }

        public IList<Staff> AllStaff
        {
            get;
            set;
        }

        public IList<KeyValPair> Columns
        {
            get
            {
                IList<KeyValPair> lst = new List<KeyValPair>();
                lst.Add(new KeyValPair { Key = "FirstName", Value = "First Name" });
                lst.Add(new KeyValPair { Key = "LastName", Value = "Last Name" });
                lst.Add(new KeyValPair { Key = "AddressLine1", Value = "Address Line1" });
                lst.Add(new KeyValPair { Key = "City", Value = "City" });
                lst.Add(new KeyValPair { Key = "Postcode", Value = "Postcode" });
                lst.Add(new KeyValPair { Key = "Email", Value = "Email" });
                return lst;
            }
        }

        public StaffSearchModel StaffSearch
        {
            get;
            set;
        }
    }

    public class StaffSearchModel
    {
        public string SearchBy
        {
            get;
            set;
        }

        public string Value
        {
            get;
            set;
        }
    }
}

